package com.uni.service.impl;

import com.uni.common.util.PageBean;
import com.uni.entity.Professor;
import com.uni.mapper.ProfessorMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProfessorService {
    @Autowired
    ProfessorMapper professorMapper;

    public List<Professor> getProfessorList(PageBean pageBean){
        return professorMapper.getProfessorList(pageBean);
    }

    public Integer updatePro(Professor professor){
        return professorMapper.updatePro(professor);
    }

    public Integer delete(List<String> ids){

        return professorMapper.delete(ids);

    }
    public Integer insert(Professor professor){
        return professorMapper.insert(professor);
    }

    public Integer countList(PageBean<Professor> pageBean){
        return  professorMapper.countList(pageBean);
    };

}
